package ae.pcfc.cldos.online.common.clddb.domain.manager.provider;

import java.util.List;

import ae.pcfc.cldos.online.common.clddb.dao.ApplicationStatusDAO;
import ae.pcfc.cldos.online.common.clddb.domain.ApplicationStatus;
import ae.pcfc.cldos.online.common.clddb.domain.manager.ApplicationStatusDOM;

/**
 * 
 * @author akhader
 *
 */
public class ApplicationStatusDOMImpl implements ApplicationStatusDOM {

	private ApplicationStatusDAO applicationStatusDAO;
	
	/**
	 * @return
	 */
	public ApplicationStatusDAO getApplicationStatusDAO() {
		return applicationStatusDAO;
	}

	/**
	 * @param applicationStatusDAO
	 */
	public void setApplicationStatusDAO(ApplicationStatusDAO applicationStatusDAO) {
		this.applicationStatusDAO = applicationStatusDAO;
	}
	/**
	 * @param name
	 * @return
	 */
	public List<ApplicationStatus> findApplicationStatusByType(String name){
		return applicationStatusDAO.findApplicationStatusByType(name);
	}
	
	public ApplicationStatus findById(Long statusCode){
		return applicationStatusDAO.findById(statusCode);
	}

}
